package cn.itsource.cn.itsource.controller;

import com.lyb.domian.User;
import org.springframework.web.bind.annotation.*;

@RestController
public class UserController {

    @GetMapping("/user/{id}")
    public User getUser(@PathVariable(value = "id") Long id){
        return new User(id,"有缘势必能有果、相守无缘终为陌");
    }
}
